{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "9ebc58a9",
   "metadata": {},
   "source": [
    "# 设计逻辑\n",
    "## 获取当前日期，让用户知晓日期\n",
    "## 根据对应日期，输出对应的课程\n",
    "## 注意：输出日期时需要+1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "3a33551a",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "C+课程表\n",
      "今天为星期 6\n",
      "目前暂无课程！\n",
      "你可以自由安排时间~\n"
     ]
    }
   ],
   "source": [
    "print(\"C+课程表\")\n",
    "import datetime\n",
    "time = datetime.datetime.today().weekday()\n",
    "print(\"今天为星期\",time+1)\n",
    "week_time = int(time)\n",
    "\n",
    "if week_time==0:\n",
    "    print(\"08:00-10:25 新媒体分析和用户体验\");print(\"14:30-17:35 商务沟通\");  print(\"18:45-20:55 就业指导\")\n",
    "elif week_time==1:\n",
    "    print(\"14:30-17:35 公司财务分析与资本运作\");print(\"18:45-20:55 马克思主义基本原理\")\n",
    "elif week_time==2:\n",
    "    print(\"08：00-09：30 网络文案与创意写作\")\n",
    "elif week_time==3:\n",
    "    print(\"09：45-12：00 Python语言\")\n",
    "elif week_time==4:\n",
    "    print(\"09：45-12：00 网站运营与管理\")\n",
    "else:\n",
    "    print(\"目前暂无课程！\");print(\"你可以自由安排时间~\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "b7fa22c1",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "d2a44dd4",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "548f148e",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
